package com.shop.admin.validate.paper;

import com.shop.common.validator.annotation.IntegerContains;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 考卷设置状态参数
 * @author DragonDean
 */
@Data
@ApiModel("考卷设置状态参数")
public class PaperSetStatusValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "ID")
    private Integer id;

    @NotNull(message = "状态参数缺失")
    @ApiModelProperty(value = "状态:0禁用，1启用")
    @IntegerContains(values = {0, 1}, message = "状态值不正确")
    private Integer status;

}
